	{include file="Public:header" /}
<!-- 载入公共头部文件结束 -->
	<link href="__PUBLIC__/Home/css/detail.css" type="text/css" rel="stylesheet" >
	<div id="map" class='position'>
		<a href="__MODULE__/Index/index/lid/{$detail['lid']}">{$detail['lname']}</a><span>»</span><a href="__MODULE__/Index/index/cid/{$detail['cid']}">{$detail['cname']}</a><span>»</span><span href="网票网">{$detail['shop_name']}</span>
	</div>
	<div id="content" class='position' style="height:3000px;">
		<div class='content-left'>
			<div class="goods-intro">
				<div class='goods-title'>
					<h1>{$detail['main_title']}</h1>
					<h3>{$detail['sub_title']}</h3>
				</div>
				<div class='deal-intro'>
					<div class='buy-intro'>
						<div class='price'>
							<div class='discount-price'>
								<span>¥{$detail['price']}</span>
							</div>
							<div class='cost-price'>
								<span class='discount'>3.6折</span>
								门店价<b>¥{$detail['old_price']}</b>
							</div>
						</div>
						<div class='deal-buy-cart'>
							<a href="javascript:void(0)" class='buy'></a>
							<a href="javascript:void(0)" id="addCart" gid="{$detail['gid']}" class='cart'></a>
						</div>
						 <style>
							 #xunjia{
							 	padding-left:10px;
							 	padding-right:10px;
							 }
						 </style>
						<script>
						var html='<div id="xunjia">';
							html+='<p>添加购物车成功:你的购物车有2种商品</p>'
							html+='</div>';
							$("#addCart").click(function(){
								var gid = $(this).attr('gid');
								$.ajax({
									url : '__MODULE__/Cart/add',
									data : {'gid':gid},
									type : 'get',
									dataType : 'json',
									async : false,   //取消同步，执行完之后再往下执行
									success : function(data){
										if(data.status == true){
											layer.confirm("添加购物车成功！<br/>你的购物城共有"+data.total+"种商品", {
											  icon: 1,
											  btn: ['查看购物车', '继续浏览'], //可以无限个按钮 
											}, function(index){
											  //按钮【按钮一】的回调
												//window.location.href="__MODULE__/ShoppingCart/add_tocart";
												layer.close(index);
											}, function(index){
											  //按钮【按钮二】的回调
												layer.close(index);
											});
										}
									}
								});
							});
						</script>
						<div class='purchased'>
							<p class='people'>
								<span>{$detail['buy']}</span>人已团购
							</p>
							<p class='time'>
								剩余<span>3</span>天以上
							</p>
						</div>
						<ul class='refund-intro'>
							<li>
								<span class='ico'></span>
								<span class='text'>假一陪十</span>
							</li>
							<li>
								<span class='ico'></span>
								<span class='text'>假一陪十</span>
							</li>
						</ul>
					</div>
					<div class='image-intro'>
						<img src="__ROOT__/Upload/25211475847590_310x185.png"/>
					</div>
				</div>
				<div class='collect'>
					<a class='collect-link' href=''><i></i>收藏本单</a>
					
					<div class='share'>
						
					</div>
					
				</div>
			</div>
			<div class='detail'>
				<ul class='plot-points'>
					<li class='active'><a href="#shop-site">商家位置</a></li>
					<li><a href="#details">本单详情</a></li>
					<li><a href="#comment">消费评价</a></li>
				</ul>
				<div id="shop-site" class='shop-site'>
					<p class='site-title'>商家位置</p>
					<div class='box'>
						<div class='map'>
							
						</div>
						<div class='info'>
							<h3>{$detail['shop_name']}</h3>
							<dl>
								<dt>地址:</dt>
								<dd>{$detail['shop_address']}</dd>
							</dl>
							<dl>
								<dt>地铁:</dt>
								<dd>距菜市口站约275米</dd>
							</dl>
							<dl>
								<dt>电话:</dt>
								<dd>010-82133026/82113020</dd>
							</dl>
						</div>
					</div>
				</div>
				<div id="details"  class='details'>
					{$detail['detail']}
				</div>
				<div id="comment" class='comment'>
					<div class='comment-list-title'>
						<span>全部评价</span>
						<a class='order-time' href="">按时间<i></i></a>
					</div>
					<div class='comment-list'>
						<div class='list-con'>
							<div class='con-top'>
								<span class='username'>sdas</span>
								<span class='time'>评价于:<em>2013-08-04</em></span>
							</div>
							<p>
								说是香草拿铁不是很苦，结果根本不是想象中的味道！像速溶冲调！还要另加五元？有此一说吗？银座店环境一般！
							</p>
						</div>
						
					</div>
					<div class='comment-page'>
						<a href="">1</a>
						<a href="">1</a>
						<a href="">1</a>
						<a href="">1</a>
						<a href="">1</a>
						<a href="">1</a>
					</div>
				</div>
			</div>
		
		</div>
		<div class='content-right'>
			<div class='recommend'>
				<h3 class='recommend-title'>
					看过本团购的用户还看了
				</h3>
				<div class='recommend-goods'>
					<a class='goods-image' href="">
						<img alt="图像加载失败.." src="http://p0.meituan.net/200.121/deal/__5738304__3391447.jpg">
					</a>
					<h4>
						<a href="">【五道口】上岛咖啡：双人下午茶套餐，美味齐分享</a>
					</h4>
					<p>
						<strong>¥39.8</strong>
						<span class='cost-price'>门店价<del>144</del></span>
						<span class='num'>
							<span>173</span>
							 人已团购
						</span>
					</p>
				</div>
			</div>
		</div>
		
		
		
	</div>		




		 













<!-- 载入公共头部文件开始 --> 
	{include file="Public:footer" /}
<!-- 载入公共头部文件结束 -->